ScanDeviceManager Close
Close the ScanDeviceManager by disconnecting the all connections made to devices and clean up the resources used.
public void Close() |
Return value
void |
Example
Copy
try
{
scanDeviceManager.Disconnect(DeviceUniqueName);
scanDeviceManager.Close();
}
#region Exceptions
catch (DeviceNotFoundException)
{
MessageBox.Show("Device could not be found", "Custom Canvas");
}
catch (DeviceFailureException ex2)
{
MessageBox.Show("Device failure occured. Could not disconncet.\nMessage: " + ex2.DeviceMessage, "Custom Canvas");
}
#endregion